package com.jingdun.sport.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jingdun.sport.bean.model.PareGetMyPackageDataListResponse;
import com.jingdun.sport.bean.model.UserPrizeWidgetRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserPrizeWidgetRelationService extends IService<UserPrizeWidgetRelation> {

    public void addUserPrizeWidgetRelation(UserPrizeWidgetRelation userPrizeWidgetRelation);

    public UserPrizeWidgetRelation getUserPrizeWidgetRelationDetail(@Param("params") Map<String, Object> m);

    public void updateUserPrizeWidgetRelation(UserPrizeWidgetRelation userPrizeWidgetRelation);


    //public List getMyPackageDataList(Map userId);
    public List getMyPackageDataList(@Param("params") Map<String, Object> m);

    public Page<Map<String, Object>> getPaginationUserPrizeWidgetRelation(@Param("params") Map<String, Object> m);

    public List<PareGetMyPackageDataListResponse> getMyPackageDataList(String userId);
}
